package com.crm.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zjd
 * @Title:
 * @Description:
 * @date 2021/4/210:46
 */
@Data
@ApiModel(value="CompanyAppertainDTO", description="公司关联关系")
public class CompanyAppertainDTO {

    @NotNull(message = "必填字段不能为空")
    @Min(value = 1,message = "最小值不能为0")
    @ApiModelProperty(value = "当前公司id")
    private Long companyId;

    @NotNull(message = "必填字段不能为空")
    @Min(value = 1,message = "最小值不能为0")
    @ApiModelProperty(value = "目标公司id")
    private Long targetCompanyId;

    @NotNull(message = "必填字段不能为空")
    @Min(value = 1,message = "最小值不能为0")
    @Max(value = 3,message = "最大值不能为3")
    @ApiModelProperty(value = "type 1 添加母公司 2 添加子公司")
    private Integer type;
}
